<?php
$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>
<div class="container ">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableAjaxValidation'=>true,
	'htmlOptions'=>array(
	'class' => 'form-signin'
	)
)); ?>

		<h5 ><?php  echo Yii::t('layout','Please sign in') ?></h5>
		<?php echo $form->textField($model,'username',array(
		'placeholder'=>Yii::t('layout','User name'),
		'class'=>'input-block-level'
		)); ?>
		<?php echo $form->error($model,'username'); ?>

		<?php echo $form->passwordField($model,'password',
			array('placeholder'=>Yii::t('layout','Password'),'class'=>'input-block-level')); ?>
		<?php echo $form->error($model,'password'); ?>

  		<label class="checkbox">
			<?php echo $form->checkBox($model,'rememberMe'); ?>
			<?php echo $form->label($model,'rememberMe'); ?>
		</label>
		<?php echo $form->error($model,'rememberMe'); ?>

		<?php echo CHtml::submitButton(Yii::t('layout','Sign in'),array(
		'class'=> "btn btn-large btn-primary"
		)); ?>
		<?php $this->widget('ext.oauthLogin.OauthLogin',array(
           'itemView'=>'medium_login', //效果样式
           'back_url'=>Yii::app()->homeUrl,//login成功后返回的页面
 )); ?>

<?php $this->endWidget(); ?>
</div><!-- form -->
